package com.zj.z11select.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 轮播图 
 * </p>
 *
 * @author ZHOUJIE
 * @since 2021-08-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("index_img")
@ApiModel(value="IndexImg对象", description="轮播图 ")
public class IndexImg implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id 主键id")
    @TableId(value = "i_img_id", type = IdType.AUTO)
    private Integer iImgId;

    @ApiModelProperty(value = "图片地址")
    private String imgUrl;

    @ApiModelProperty(value = "背景色")
    private String imgBgColor;

    @ApiModelProperty(value = "商品id")
    private Integer productId;

    @ApiModelProperty(value = "商品分类id")
    private Integer categoryId;

    @ApiModelProperty(value = " 轮播图类型（1-商品，2-类别）")
    private Integer type;

    @ApiModelProperty(value = "轮播图展示顺序")
    private Integer seq;

    @ApiModelProperty(value = "是否展示(1-是，2-否)")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
